//Set cookie

setCookie = function (nm, val, y) { var exp = ''; if (y) { var dt = new Date(); dt.setTime(dt.getTime() + (y * 86400000)); exp = '; expires=' + dt.toGMTString(); } document.cookie = nm + '=' + escape(val) + exp + ';path=/;domain=olank.com'; }
getCookie = function (nm) { var m = ''; if (window.RegExp) { var re = new RegExp(';\\s*' + nm + '=([^;]*)', 'i'); m = re.exec(';' + document.cookie); } return (m ? unescape(m[1]) : ''); }

//Hot news in 7 days

function hot7()
{
    document.getElementById("con1").style.display = "";
    document.getElementById("con2").style.display = "none";
    document.getElementById("con3").style.display = "none";
    document.getElementById("con4").style.display = "none";
    document.getElementById("hot7").className = "current";
    document.getElementById("comm7").className = "";
    document.getElementById("month").className = "";
    document.getElementById("must").className = "";
}

function comm7() {
    document.getElementById("con1").style.display = "none";
    document.getElementById("con2").style.display = "";
    document.getElementById("con3").style.display = "none";
    document.getElementById("con4").style.display = "none";
    document.getElementById("hot7").className = "";
    document.getElementById("comm7").className = "current";
    document.getElementById("month").className = "";
    document.getElementById("must").className = "";
}

function month() {
    document.getElementById("con1").style.display = "none";
    document.getElementById("con2").style.display = "none";
    document.getElementById("con3").style.display = "";
    document.getElementById("con4").style.display = "none";
    document.getElementById("hot7").className = "";
    document.getElementById("comm7").className = "";
    document.getElementById("month").className = "current";
    document.getElementById("must").className = "";
}

function must() {
    document.getElementById("con1").style.display = "none";
    document.getElementById("con2").style.display = "none";
    document.getElementById("con3").style.display = "none";
    document.getElementById("con4").style.display = "";
    document.getElementById("hot7").className = "";
    document.getElementById("comm7").className = "";
    document.getElementById("month").className = "";
    document.getElementById("must").className = "current";
}

//News list

function numb1()
{
    document.getElementById("list1").style.display = "";
    document.getElementById("list2").style.display = "none";
    document.getElementById("list3").style.display = "none";
    document.getElementById("list4").style.display = "none";
    document.getElementById("numb1").className = "current";
    document.getElementById("numb2").className = "";
    document.getElementById("numb3").className = "";
    document.getElementById("numb4").className = "";
}

function numb2() {
    document.getElementById("list1").style.display = "none";
    document.getElementById("list2").style.display = "";
    document.getElementById("list3").style.display = "none";
    document.getElementById("list4").style.display = "none";
    document.getElementById("numb1").className = "";
    document.getElementById("numb2").className = "current";
    document.getElementById("numb3").className = "";
    document.getElementById("numb4").className = "";
}

function numb3() {
    document.getElementById("list1").style.display = "none";
    document.getElementById("list2").style.display = "none";
    document.getElementById("list3").style.display = "";
    document.getElementById("list4").style.display = "none";
    document.getElementById("numb1").className = "";
    document.getElementById("numb2").className = "";
    document.getElementById("numb3").className = "current";
    document.getElementById("numb4").className = "";
}

function numb4() {
    document.getElementById("list1").style.display = "none";
    document.getElementById("list2").style.display = "none";
    document.getElementById("list3").style.display = "none";
    document.getElementById("list4").style.display = "";
    document.getElementById("numb1").className = "";
    document.getElementById("numb2").className = "";
    document.getElementById("numb3").className = "";
    document.getElementById("numb4").className = "current";
}

// IE6 blink
(function(){
    var   m = document.uniqueID /*IE*/
    && document.compatMode  /*>=IE6*/
    && !window.XMLHttpRequest /*<=IE6*/
    && document.execCommand;
    try{
        if(!!m){
             m("BackgroundImageCache", false, true) /* = IE6 only */ 
         }
        
     }catch(oh){};
})();

function doZoom(size) {
    document.getElementById('paragraph').style.fontSize = size + 'px'
    //setTailPosition()
}

//Headline Js 
window.onload=function(){  
}
